package com.petsdar.pojo;

import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;

/**
 * Created with IntelliJ IDEA
 * User: heroC
 * Date: 2020/6/27
 * Time: 18:50
 * Description: 任务类
 * Version: V1.0
 */

@Component
public class Task implements Serializable {
    private static final long serialVersionUID = 62718501130L;
    /** 任务ID */
    private BigInteger taskId;
    /** 任务内容 */
    private String task;
    /** 任务信息创建时间 */
    private Date tkCreateTime;

    public Task() {
    }

    public Task(BigInteger taskId, String task, Date tkCreateTime) {
        this.taskId = taskId;
        this.task = task;
        this.tkCreateTime = tkCreateTime;
    }

    public Task(BigInteger taskId, String task) {
        this.taskId = taskId;
        this.task = task;
    }

    public BigInteger getTaskId() {
        return taskId;
    }

    public void setTaskId(BigInteger taskId) {
        this.taskId = taskId;
    }

    public String getTask() {
        return task;
    }

    public void setTask(String task) {
        this.task = task;
    }

    public Date getTkCreateTime() {
        return tkCreateTime;
    }

    public void setTkCreateTime(Date tkCreateTime) {
        this.tkCreateTime = tkCreateTime;
    }

    @Override
    public String toString() {
        return "Task{" +
                "taskId=" + taskId +
                ", task='" + task + '\'' +
                ", tkCreateTime=" + tkCreateTime +
                '}';
    }
}
